package com.tjetc._3stream;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

public class _2GetStream {
//    List list = new ArrayList();
    public static void main(String[] args) {
        // 数组转换成流
        int[] arr = {1, 2, 3};
        Stream<int[]> arr1 = Stream.of(arr);
        // 集合转换成流
        List list = new ArrayList();
        Stream stream = list.stream();
    }

//    public String f() {
//        // 写一堆逻辑 最后return
//        return list.stream().filter().forEach();
//    }
}